using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Activation;


namespace Pixysoft.Framework.Security
{
    [AttributeUsage(AttributeTargets.All)]
    public class SecurityInterceptorAttribute : ContextAttribute
    {
        public SecurityInterceptorAttribute() : base("SecurityInterceptor") { }

        public override void GetPropertiesForNewContext(IConstructionCallMessage ccm)
        {
            ccm.ContextProperties.Add(new SecurityInterceptorProperty());
        }
    }
}
